package com.gs.xbinfomytest.entity;

import com.gitee.hengboy.mybatis.enhance.common.annotation.Column;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Id;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Table;
import com.gitee.hengboy.mybatis.enhance.common.enums.KeyGeneratorTypeEnum;
import lombok.Data;
import java.io.Serializable;

import java.sql.Timestamp;

/**
 * 操作日志记录
 * @author ApiBoot Mybatis Enhance Codegen
 */
@Data
@Table(name = "sys_oper_log")
public class SysOperLog implements java.io.Serializable {

    /**
     * 日志主键
     */
    @Id(generatorType = KeyGeneratorTypeEnum.AUTO)
    @Column(name = "oper_id")
    private Long operId;
    /**
     * 模块标题
     */
    @Column(name = "title")
    private String title;
    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    @Column(name = "business_type")
    private Integer businessType = 0;
    /**
     * 方法名称
     */
    @Column(name = "method")
    private String method;
    /**
     * 操作类别（0其它 1后台用户 2手机端用户）
     */
    @Column(name = "operator_type")
    private Integer operatorType = 0;
    /**
     * 操作人员
     */
    @Column(name = "oper_name")
    private String operName;
    /**
     * 部门名称
     */
    @Column(name = "dept_name")
    private String deptName;
    /**
     * 请求URL
     */
    @Column(name = "oper_url")
    private String operUrl;
    /**
     * 主机地址
     */
    @Column(name = "oper_ip")
    private String operIp;
    /**
     * 操作地点
     */
    @Column(name = "oper_location")
    private String operLocation;
    /**
     * 请求参数
     */
    @Column(name = "oper_param")
    private String operParam;
    /**
     * 操作状态（0正常 1异常）
     */
    @Column(name = "status")
    private Integer status = 0;
    /**
     * 错误消息
     */
    @Column(name = "error_msg")
    private String errorMsg;
    /**
     * 操作时间
     */
    @Column(name = "oper_time")
    private Timestamp operTime;
}

